<template>
  <div>
    <!--Notice是通用子组件，所以还是选择在这里将需要显示的内容传递给Notice-->
    <notice :noticeData="$store.state.showNoticeData"></notice>
    <breadCrumb></breadCrumb>
  </div>
</template>

<script>
  import BreadCrumb from 'components/common/breadCrumb/BreadCrumb';
  import Notice from 'components/common/notice/Notice'

  export default {
    name: "BreadCrumbWithNotice",
    components: {
      BreadCrumb,
      Notice
    },
    mounted() {
      // 获取需要显示的公告信息
      this.$store.commit("getAllBackUsableNotice");
    }
  }
</script>

<style scoped>
  /*.notice-box {*/
    /*position: absolute;*/
    /*top: 60px;*/
    /*left: 0;*/
    /*z-index: 999;*/
    /*height: 40px;*/
    /*width: 300px;*/
  /*}*/

  .notice-box i {
    display: inline-block;
    height: 40px;
    line-height: 40px;
    font-size: 24px;
    margin-left: 20px;
    vertical-align: top;
  }
  .notice-box .notice-info {
    display: inline-block;
    margin-left: 40px;
    height: 24px;
    margin-top: 8px;
    background-color: #666;
    overflow: hidden;
  }
  .notice-box .notice-info ul {
    height: 24px;
    color: #F56C6C;
    line-height: 24px;
    list-style: none;
    margin-top: 0px;

    /*transition: all 200ms;*/
  }
</style>